package com.ruoyi.accounts.tcp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.accounts.mapper.EmpMachineTypeMapper;

@Service
public class GameInfoService {
    @Autowired
    private EmpMachineTypeMapper empMachineTypeMapper;
    /**
     * 根据机器ID获取机器类型ID
     */
    public Long getMachineTypeFromMachine(String hardwareNumber) {
        return empMachineTypeMapper.getMachineTypeFromMachine(hardwareNumber);
    }

    /**
     * 根据机器ID获取机器ID
     */
    public Long getMachineIdFromMachine(String hardwareNumber) {
        return empMachineTypeMapper.getMachineIdFromMachine(hardwareNumber);
    }
}